<script>
    $(".form_validate").validate();
</script>
<h2>Comité</h2>
<?php echo $this->Form->create('PurchasingCommittee', array('enctype' => 'multipart/form-data', 'type' => 'file', "action" => "add/" . $operating_plan_id, 'class' => 'form_validate')); ?>
<?php echo $this->Form->hidden('PurchasingCommittee.operating_plan_id', array('value' => $operating_plan_id)); ?>
<?php echo $this->Form->input('PurchasingCommittee.fecha_realizacion', array('label' => 'Fecha realización', 'class' => 'calendario', 'type' => 'text')); ?>
<?php echo $this->Form->input('PurchasingCommittee.resumen', array('label' => 'Resumen', 'class' => 'txtarea')); ?>
<h2>Archivo comité</h2>
<hr>
<?php echo $this->Form->file('PurchasingCommittee.archivo', array('accept' => 'pdf', 'label' => 'Archivo')); ?>
<br><br>
<h2>Archivo cotizaciones</h2>
<hr>
<?php echo $this->Form->file('PurchasingCommittee.cotizacion', array('accept' => 'pdf', 'label' => 'Cotizaciones')); ?>
<br><br>
<?php echo $this->Form->end(array('label' => 'Guardar', 'class' => 'submit_button')) ?>
<br><br>
<?php
echo $ajax->link($html->image('regresar.gif', array('width' => '30', 'heigth' => '30', 'alt' => 'Regresar', 'title' => 'regresar')), array('controller' => 'PurchasingCommittees', 'action' => 'index', $operating_plan_id), array('update' => 'content', 'indicator' => 'loading', 'escape' => false));
?>